{include file="Public/header" title="修改配置"/}
<!-- 主容器 start -->
<div id="container" class="container-fluid">
    <div class="row-fluid">

        <!-- 左侧导航栏 start -->
        {include file="Public/sidebar"/}
        <!-- 左侧导航栏 end -->
        <!-- 主内容 start -->
        <div id="content" class="span10">
            <!-- 标题 start -->
            <div class="pageTit page-header">
                <h1>编辑
                    <small>数据库基本信息</small>
                </h1>
                <div class="opt">
                </div>
            </div>
            <!-- 标题 end -->
            <!-- 内容区块 start -->
            <div class="formBox">
                <form id="addform" action="{:U('Admin/Config/save')}" method="post" enctype="multipart/form-data">
                    <input name="id" type="hidden" value=""/>
                    <!-- 标题 -->
                    <div class="control-group config">
                        <label>数据库名称：(<font color="red">20个汉字以内</font>)</label>
                        <input type="text" name="site_name" class="form-control js_site_descript" value="{:get_config_value('site_name')}" style="width:50%"
                               datatype="s2-20" nullmsg="请填写数据库名称！" errormsg="数据库名称至少2个最多20个汉字！" placeholder="数据库名称"/>
                        <span class="Validform_checktip"></span>
                    </div>
                    <div class="control-group">
                        <input type="submit" class="btn btn-primary Sub" value="保存"/>
                    </div>
                </form>
            </div>
            <!-- 内容区块 end -->
        </div>
        <!-- 主内容 end -->
        <script>
            $(function () {
                //提交表单合法性验证
                $("#addform").Validform({
                    tiptype: function (msg, o, cssctl) {
                        if (!o.obj.is("form")) {
                            var objtip = o.obj.siblings(".Validform_checktip");
                            cssctl(objtip, o.type);
                            objtip.text(msg);
                        }
                    },

                });
            })
        </script>

    </div>
</div>
<!-- 主容器 end -->
{include file="Public/footer"/}